package com.cherrypt.api.core.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cherrypt.api.model.dataobject.SeriesTorrent;
import com.cherrypt.api.model.dataobject.Torrent;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: intent
 * @Date: 19-10-28 下午1:11
 */
public interface SeriesTorrentDao extends BaseMapper<SeriesTorrent> {
    @Select(value = "SELECT t_torrents.* FROM t_series_torrent, t_torrents WHERE t_series_torrent.sid = #{sid} AND t_series_torrent.tid = t_torrents.id")
    List<Torrent> selectTorrentListBySid(int sid);
}
